<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="format-detection" content="telephone=yes" />
    <meta content="noindex,nofollow" name="robots" />
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
    <meta http-equiv="expires" content="0">
    <title>久久商城</title>
    <link rel="stylesheet" type="text/css" href="__STATIC__/themes/css/core.css?v={$v}">
    <link rel="stylesheet" type="text/css" href="__STATIC__/themes/css/icon.css?v={$v}">
    <link rel="stylesheet" type="text/css" href="__STATIC__/themes/css/home.css?v={$v}">
    <script type="text/javascript" src="__STATIC__/themes/js/jquery.min.js?v={$v}"></script>
    <link rel="stylesheet" href="__STATIC__/thirdpart/jindu/css/an-skill-bar.css?v={$v}">
    <link rel="stylesheet" href="__STATIC__/thirdpart/jindu/css/main.css?v={$v}">
    <style>
        .jjj img{max-width:100%;}
        .layui-m-layerchild{background:none;}
    </style>
</head>
<body>
<div style="background:#FFB700">
    <div style="padding:15px;padding-bottom:0px;">
        <div style="background:#fff;border-radius:15px 15px 0px 0px;padding:10px 15px;padding-bottom:10px">
            <table width="100%">
                <tr>
                    <td><img src="{$info.img}" style=" width: 40px; border-radius: 40px;" /><br />{$info.nickname}</td>
                    <td style="text-align:center;font-size:15px;font-weight:bold;line-height:26px;"><span style="font-size:12px;">会员级别</span><br />V{$info.grade}</td>
                    <td style="text-align:center;font-size:15px;font-weight:bold;line-height:26px;"><span style="font-size:12px;">我的积分</span><br />{$info.credit}</td>
<!--                    <td style="text-align:center;font-size:15px;font-weight:bold;line-height:26px;"><span style="font-size:12px;">我的T值</span><br />0</td>-->
<!--                    <td style="text-align:center;font-size:15px;font-weight:bold;line-height:26px;"><span style="font-size:12px;">可派订单</span><br /><span id="painum">0</span></td>-->
                </tr>
            </table>
            <div class="container">
                <div id="skill">
                    <div class="skillbar js">
                        <div class="filled" data-width="100%"></div>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <div style="background:#FFECBA;padding:10px 15px;">
        <div style="font-size:14px;font-weight:bold;">升级T{$info.grade+1}后将获得以下权益</div>
        <div>&nbsp;</div>
        <div class="jjj" style="font-size:12px;font-weight:normal;line-height: 20px;">
            <?php $i=1; ?>
            {if condition="$system_shop_get_order"}
            <div style="white-space: normal;">
              <?php echo $i.'、'; $i++; ?>  获得{$system_shop_get_order}个订单；
            </div>
            {/if}
            {if condition="$system_shop_get_friends"}
            <div style="white-space: normal;">
                <?php echo $i.'、'; $i++; ?>  获得{$system_shop_get_friends}个客户；
            </div>
            {/if}
            {if condition="$system_shop_get_paidan"}
            <div style="white-space: normal;">
                <?php echo $i.'、'; $i++; ?>  获得{$system_shop_get_paidan}个派单；
            </div>
            {/if}
            {if condition="$system_shop_get_credit"}
            <div style="white-space: normal;">
                <?php echo $i.'、'; $i++; ?> 获得{$system_shop_get_credit}积分；
            </div>
            {/if}
            {if condition="!$system_shop_get_order and !$system_shop_get_friends and !$system_shop_get_paidan and !$system_shop_get_credit"}
            <div style="white-space: normal;">
              等级太低，暂无权益
            </div>
            {/if}
        </div>
        <div style="margin-top:5px;"></div>
    </div>
    <div style="height:5px;background:#f5f5f5;">&nbsp;</div>
    <div style="padding:15px;padding-top:0px;padding-bottom:0px;background:#fff;">
        <div id="ss">
            <div style="font-size:14px;font-weight:bold;text-align:left;padding-top:15px;">T{$info.grade} > T{$info.grade+1}升级任务</div>
<!--            关注微信公众号-->
           <div style="border-top:1px solid #E2E3E3;">&nbsp;</div>
            <table width="100%">
                <tr>
                    <td width="24" style="padding-right:5px;" rowspan="2" valign="top"></td>
                    <td style="font-size:12px;font-weight:bold;">提示：为提供更多即时服务，请长按识别二维码关注公众号</td>
                    <td width="70">
                        <img src="__STATIC__/img/jiujiu.jpg" width="80">
                    </td>
                </tr>
            </table>

            <?php $m=1; ?>

<!--            开通店铺-->
            {if condition="$info['grade'] gt $num"}
            <div style="border-top:1px solid #E2E3E3;">&nbsp;</div>
            <table width="100%">
                <tr>
                    <td width="24" style="padding-right:5px;" rowspan="2" valign="top">
                    <img src="__STATIC__/themes/tick{$shop?1:2}.png" style="width:100%;padding-top:10px;">
                    </td>
                    <td style="font-size:12px;font-weight:bold;">任务<?php echo $m; $m++; ?>：创建店铺并添加商品</td>
                    <td width="70">
                        <a href="{:url('index/shop/myShopSet')}"
                           style="background:#FFDD86;border-radius: 8px;color:#fff;width:70px;height:30px;
                           line-height:30px;display:block;text-align:center;font-size:14px;">
                            {$shop?'已':'去'}完成</a>
                    </td>
                </tr>
            </table>
            {/if}

<!--            去系统推荐店铺购买-->
            {if condition="$system_shop_buy_num gt 0 "}
            {if condition="isset($paidanShop)"}
            <div style="border-top:1px solid #E2E3E3;">&nbsp;</div>
            <table width="100%">
                <tr>
                    <td width="24" style="padding-right:5px;" rowspan="2" valign="top">
                        {if condition="$isCompleteSystemOrder eq 0"}
                        <img src="__STATIC__/themes/tick2.png" style="width:100%;padding-top:10px;">
                        {else}
                        <img src="__STATIC__/themes/tick1.png" style="width:100%;padding-top:10px;">
                        {/if}
                    </td>
                    <td style="font-size:12px;font-weight:bold;">任务<?php echo $m; $m++; ?>：在系统店铺购买{$system_shop_buy_num}单 {$system_shop_buy_price} 元以上商品</td>
                    <td width="70">
                        {if condition="$isCompleteSystemOrder eq 0"}
                        <a href="{:url('index/shop/index')}?id={$paidanShop.id}&p=1" style="background:#FFB700;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">去完成</a>
                        {else}
                        <a href="{:url('index/shop/index')}?id={$paidanShop.id}&p=1" style="background:#F60;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">已完成</a>
                        {/if}
                    </td>
                </tr>
            </table>
            {/if}
            {/if}
<!--            去直接推荐人店铺购买-->
            {if condition="$father_shop_buy_num gt 0"}
            <div style="border-top:1px solid #E2E3E3;">&nbsp;</div>
            <table width="100%">
                <tr>
                    <td width="24" style="padding-right:5px;" rowspan="2" valign="top">
                        {if condition="$isCompleteFatherOrder eq 0"}
                        <img src="__STATIC__/themes/tick2.png" style="width:100%;padding-top:10px;">
                        {else}
                        <img src="__STATIC__/themes/tick1.png" style="width:100%;padding-top:10px;">
                        {/if}
                    </td>
                    <td style="font-size:12px;font-weight:bold;">任务<?php echo $m; $m++; ?>：在推荐人店铺购买{$father_shop_buy_num}单 {$system_shop_buy_price} 元以上商品</td>
                    <td width="70">
                        {if condition="$isCompleteFatherOrder eq 0"}
                        <a href="{:url('index/shop/index')}?id={$fatherShop.id}" style="background:#FFB700;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">去完成</a>
                        {else}
                        <a href="{:url('index/shop/index')}?id={$fatherShop.id}" style="background:#F60;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">已完成</a>
                        {/if}
                    </td>
                </tr>
            </table>
            {/if}

            <!--培养团队任务-->
            {if condition="$team_num gt 0 "}
            <div style="border-top:1px solid #E2E3E3;">&nbsp;</div>
            <table width="100%">
                <tr>
                    <td width="24" style="padding-right:5px;" rowspan="2" valign="top">
                        {if condition="$isCompleteFatherOrder eq 0"}
                        <img src="__STATIC__/themes/tick2.png" style="width:100%;padding-top:10px;">
                        {else}
                        <img src="__STATIC__/themes/tick1.png" style="width:100%;padding-top:10px;">
                        {/if}
                    </td>
                    <td style="font-size:12px;font-weight:bold;">任务<?php echo $m; $m++; ?>：培养{$team_num}个 {$grade_num} 星级会员</td>
                    <td width="70">
                        {if condition="$isCompleteTeamNum eq 0"}
                        <a href="javascript:void (0);" onclick="completeMsg();" style="background:#FFB700;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">去完成</a>
                        {else}
                        <a href="javascript:void (0);" onclick="layer.alert('任务已完成')" style="background:#F60;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">已完成</a>
                        {/if}
                    </td>
                </tr>
            </table>
            {/if}

            <!--积分任务任务-->
            {if condition="$promotion_credit gt 0 "}
            <div style="border-top:1px solid #E2E3E3;">&nbsp;</div>
            <table width="100%">
                <tr>
                    <td width="24" style="padding-right:5px;" rowspan="2" valign="top">
                        {if condition="$isCompleteCredit eq 0"}
                        <img src="__STATIC__/themes/tick2.png" style="width:100%;padding-top:10px;">
                        {else}
                        <img src="__STATIC__/themes/tick1.png" style="width:100%;padding-top:10px;">
                        {/if}
                    </td>
                    <td style="font-size:12px;font-weight:bold;">任务<?php echo $m; $m++; ?>：积够{$promotion_credit}积分</td>
                    <td width="70">
                        {if condition="$isCompleteCredit eq 0"}
                        <a href="javascript:void (0);" onclick="layer.alert('请积够所需积分');" style="background:#FFB700;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">去完成</a>
                        {else}
                        <a href="javascript:void (0);" onclick="layer.alert('任务已完成')" style="background:#F60;border-radius: 8px;color:#fff;width:70px;height:30px;line-height:30px;display:block;text-align:center;font-size:14px;">已完成</a>
                        {/if}
                    </td>
                </tr>
            </table>
            {/if}


        </div>
    </div>

    <div style="background:white;padding:15px;text-align:center;">
        {if condition="$status eq 1"}
        <a href="{:url('index/promotion/promotion')}" style="display: inline-block;background:#F60;width:40%;font-size:14px;font-weight:bold;border-radius:8px;text-align:center;border:none;height:36px;line-height:36px;color:#fff;margin-left:2%;">立即晋级</a>
        {else}
        <button onclick="layer.alert('请先完成任务')" style="background:gray;width:40%;font-size:14px;font-weight:bold;border-radius:8px;text-align:center;border:none;height:36px;line-height:36px;color:#fff;margin-left:2%;">立即晋级</button>
        {/if}
    </div>

</div>
<div style="height:100px;"></div>
<footer class="aui-footer-default aui-footer-fixed">
    <a href="{:url('index/center/queueOrder')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-icon-b1" style="width:40px;height:40px;"></span>
        <span class="aui-footer-item-text">派单记录</span>
    </a>
    <a href="{:url('index/myTeam/index')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-icon-b2" style="width:40px;height:40px;"></span>
        <span class="aui-footer-item-text">我的团队</span>
    </a>
    <a href="{:url('index/center/index')}" class="aui-footer-item">
        <span class="aui-footer-item-icon aui-icon aui-icon-b3" style="width:40px;height:40px;"></span>
        <span class="aui-footer-item-text">返回个人中心</span>
    </a>
</footer>
<script src="__STATIC__/thirdpart/jindu/js/an-skill-bar.js?v={$v}"></script>
<script src="__STATIC__/thirdpart/jindu/js/main.js?v={$v}"></script>
<script src="__STATIC__/js/h5/rights.js?v={$v}"></script>
<script src="__STATIC__/js/h5/j.js"></script>
<script src="__STATIC__/layer/layer.js"></script>
<script>
    function completeMsg(){
        var taskNum = "{$taskNum}";
        var team_num = "{$team_num}";
        var num = team_num-taskNum;
        var msg = "已经完成"+taskNum+'个，还差'+num+'个';
        layer.msg(msg);
    }


</script>
</body>
</html>